using ASP;
using HoWave.Common;
using HoWave.Web;
using HoWave.Web.Admin;
using System;
using System.Web.Profile;
using System.Web.SessionState;
public class HL_Admin_Admin_AdminSynchron : Admin, IRequiresSessionState
{
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!base.admin.CheckAdminPower(4))
		{
			base.WriteLog("View", Language.GetAdminMsg("Log/Access", "0"), "AdminSynchron");
			base.WriteRightErrMsg();
		}
		int iD = Fetch.GetID("ID");
		if (iD <= 0)
		{
			this.WriteErrMsg("", Language.GetAdminMsg("Common/LostParam", "ID"), "");
		}
		if (this.config["HLIntegration"].ToString() == "0")
		{
			this.WriteErrMsg("", Language.GetAdminMsg("Integrate/IntegrateClose"), "");
		}
		Integrate integrate = new Integrate(this.conn);
		integrate.AdminSecurityKey = this.config["AdminSecurityKey"].ToString();
		integrate.InterfaceType = "admin";
		integrate.SendSingle(iD);
		if (integrate.ErrMsg != null)
		{
			this.WriteErrMsg("", integrate.ErrMsg, "");
		}
	}
}
